﻿@model PageOfList<EmrDatastructure.EmrDemographic>
@using MvcPaging;
@{
    ViewBag.Title = "Select";
}
<h2>
    Select</h2>
<div class="specialdiv" id="formlistbody">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="data-table">
        <tr>
            <th class="actions edit">
                Select
            </th>
            <th class="actions edit">
                Edit
            </th>
            <th class="actions delete">
                Delete
            </th>
            <th>
                IdentificationNumber
            </th>
            <th>
                PreferredLanguage
            </th>
            <th>
                Gender
            </th>
            <th>
                Race
            </th>
            <th>
                Ethnicity
            </th>
            <th>
                DateOfBirth
            </th>
            <th>
                LastName
            </th>
            <th>
                FirstName
            </th>
        </tr>
        @foreach (var item in Model)
        {
    
            <tr>
                <td class="actions edit">
                    <a href='@Url.Action("Select2", new { id = item.Id })'>
                        <img src="@Url.Content("~/Content/Edit.png")" alt="Select" /></a>
                </td>
                <td class="actions edit">
                    <a href='@Url.Action("Edit", new { id = item.Id })'>
                        <img src="@Url.Content("~/Content/Edit.png")" alt="Edit" /></a>
                </td>
                <td class="actions edit">
                    <a href='@Url.Action("Delete", new { id = item.Id })'>
                        <img src="@Url.Content("~/Content/Delete.png")" alt="Delete" /></a>
                </td>
                <td>
                    @item.Id
                </td>
                <td>
                    @item.PreferredLanguage
                </td>
                <td>
                    @item.Gender
                </td>
                <td>
                    @item.Race
                </td>
                <td>
                    @item.Ethnicity
                </td>
                <td>
                    @item.DateOfBirth.ToShortDateString()
                </td>
                <td>
                    @item.LastName
                </td>
                <td>
                    @item.FirstName
                </td>
            </tr>
    
        }
    </table>
    <hr />
    @Html.Pager(ViewData.Model, new PagerOptions { MaximumPageNumbers = 3 })
    <hr />
</div>
